home *** CD-ROM | disk | FTP | other *** search
Wrap
ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) NNNNAAAAMMMMEEEE ggggllllVVVViiiieeeewwwwppppoooorrrrtttt - set the viewport CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN void ggggllllVVVViiiieeeewwwwppppoooorrrrtttt( GLint _x, GLint _y, GLsizei _w_i_d_t_h, GLsizei _h_e_i_g_h_t ) PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _x, _y Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). _w_i_d_t_h, _h_e_i_g_h_t Specify the width and height of the viewport. When a GL context is first attached to a window, _w_i_d_t_h and _h_e_i_g_h_t are set to the dimensions of that window. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ggggllllVVVViiiieeeewwwwppppoooorrrrtttt specifies the affine transformation of x and y from normalized device coordinates to window coordinates. Let (x , y ) be normalized nd nd device coordinates. Then the window coordinates (x , y ) are computed as w w follows: ( width_____) x = (x + 1) + x w nd ( 2 ) ( height______) y = (y + 1) + y w nd ( 2 ) Viewport width and height are silently clamped to a range that depends on the implementation. To query this range, call ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS. EEEERRRRRRRROOOORRRRSSSS GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if either _w_i_d_t_h or _h_e_i_g_h_t is negative. GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllVVVViiiieeeewwwwppppoooorrrrtttt is executed between the execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd. PPPPaaaaggggeeee 1111 ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllVVVViiiieeeewwwwppppoooorrrrtttt((((3333GGGG)))) AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS ggggllllGGGGeeeetttt with argument GGGGLLLL____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT ggggllllGGGGeeeetttt with argument GGGGLLLL____MMMMAAAAXXXX____VVVVIIIIEEEEWWWWPPPPOOOORRRRTTTT____DDDDIIIIMMMMSSSS SSSSEEEEEEEE AAAALLLLSSSSOOOO ggggllllDDDDeeeepppptttthhhhRRRRaaaannnnggggeeee PPPPaaaaggggeeee 2222